package bradd.Blackjack;

public class Card
{
	public int m_suit;
	public int m_value;
	public int m_score;

	public Card(int inSuit, int inValue)
	{
		m_suit = inSuit;
		m_value = inValue;
	}
	
	public int getSuit()
	{
		return m_suit;
	}

	public int getValue()
	{
		return m_value;
	}
	public int getScore()
	{
		
		if (m_value == 0)
			m_score = 11;
		if (m_value == 1)
			m_score =2;
		if (m_value == 2)
			m_score = 3;
		if (m_value == 3)
			m_score = 4;
		if (m_value == 4)
			m_score = 5;
		if (m_value == 5)
			m_score = 6;
		if (m_value == 6)
			m_score = 7;
		if (m_value == 7)
			m_score = 8;
		if (m_value == 8)
			m_score = 9;
		if (m_value == 9)
			m_score = 10;
		if (m_value == 10)
			m_score = 10;
		if (m_value == 11)
			m_score = 10;
		if (m_value == 12)
			m_score = 10;
	
		return m_score;
		}
	
		
	}
	


